<template>
  <div class="Loading-wrap">
    <van-overlay
        :show="isShow"
        :custom-style="{
        background: 'rgb(255, 255, 255, 0.8)',
        display: 'flex',
        justifyContent: 'center',
        alignItems: 'center'
      }"
    >
      <van-loading size="24px" color="#4994df">
        <span style="color:#4994df">{{ title || '数据加载中···' }}</span>
      </van-loading>
    </van-overlay>
  </div>
</template>

<script>
  export default {
    name: 'Loading',
    components: {},
    props: {
      title: {
        type: String,
        default: null
      },
      isShow: {
        type: Boolean,
        default: false
      }
    }
  }
</script>

<style scoped lang="scss">
  .Loading-wrap {

  }
</style>
